Template.postItem.helpers({
	domain:function(){
		var a = document.createElement('a');
		a.url = this.url;
		return a.url;
	},

	ownPost:function(){
		return this.userId === Meteor.userId();
	}
});